package com.sanuo.pico.act;

import android.content.Intent;

import com.menu.app.activity.BaseSettingMenuActivity;
import com.menu.app.bean.BoardItem;
import com.menu.app.util.Utils;
import com.sanuo.pico.act.work.InfoActivity;

import java.util.List;

public class SettingMenuActivity extends BaseSettingMenuActivity {

    @Override
    protected void toBluetooth() {
        Utils.showBluetoothSetting();
    }

    @Override
    protected List getSettings() {
        List list = super.getSettings();
        list.add(2, new BoardItem(100, getString(com.menu.app.R.string.machine), () -> {
            toInfo();
        }));
        return list;
    }

    private void toInfo() {
        Intent i = new Intent(this, InfoActivity.class);
        startActivity(i);
    }
}
